-- GENERATED SPELL FOR [Oil-stained Wolf] --


function spell0_25791(pUnit, Event) --@Has Eaten Recently,Self--
pUnit:FullCastSpellOnTarget(46073,pUnit)
pUnit:RegisterEvent('Sorts_25791', 599, 1)
end

function spell1_25791(pUnit, Event) --@Oily Coat,Self--
pUnit:FullCastSpellOnTarget(50280,pUnit)
pUnit:RegisterEvent('Sorts_25791', 5332, 1)
end

function Sorts_25791(pUnit, Event)
local choix_sorts_25791 = math.random(0, 1)
if choix_sorts_25791 == 0 then
pUnit:RegisterEvent('spell0_25791', 1, 1)
end
if choix_sorts_25791 == 1 then
pUnit:RegisterEvent('spell1_25791', 1, 1)
end
end

function mob25791_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25791', math.random(1500, 3000), 1)
end

function mob25791_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25791_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25791_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25791, 1, 'mob25791_Action')
RegisterUnitEvent(25791, 2, 'mob25791_Leave')
RegisterUnitEvent(25791, 3, 'mob25791_Kill')
RegisterUnitEvent(25791, 4, 'mob25791_Die')
